package com.ck.ips.dao.program;

import com.ck.common.model.ProgramReducedLog;
import com.ck.ips.model.vo.program.ProgramReducedLogVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LinQiang
 * @version 1.0
 * @Description 减播MAPPER
 * @date 2019/4/29 14:24
 **/
public interface ProgramReducedLogMapper {

    /**
     * 新增
     *
     * @param record 数据
     * @return 影响行数
     */
    int insert(ProgramReducedLog record);

    /**
     * 批量新增
     *
     * @param programReducedLogList 数据
     * @return 影响行数
     */
    int batchInsert(@Param("programReducedLogList") List<ProgramReducedLog> programReducedLogList);

    /**
     * 列表查询
     * @param deviceCode 终端序列号
     * @return
     */
    List<ProgramReducedLogVO> list(@Param("deviceCode") String deviceCode);

    /**
     * 根据节目版本号删除
     *
     * @param programVersionList
     * @return
     */
    int batchDelete(@Param("programVersionList") List<String> programVersionList);
}